package com.sugar.follow.up.module.business.controller.admin.questionnairetemplatequestion.vo;

import com.sugar.follow.up.module.business.dal.dataobject.questionnairetemplatequestion.dto.OptionDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 问卷模板题目新增/修改 Request VO")
@Data
public class QuestionnaireTemplateQuestionSaveReqVO {

    @Schema(description = "题目ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8057")
    private Long id;

    @Schema(description = "问卷模板ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6361")
    @NotNull(message = "问卷模板ID不能为空")
    private Long templateId;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "标题不能为空")
    private String title;

    @Schema(description = "提示语", requiredMode = Schema.RequiredMode.REQUIRED)
    private String tip;

    @Schema(description = "题型（0单选 1多选 2填空 3问答 4日期）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "题型不能为空")
    private Integer type;

    @Schema(description = "题目选项")
    private List<OptionDTO> options;
}